{include /common/header}
<form action="{:plugin_url('/config/admin/add')}" method="POST">
    <fieldset>
        <legend>新增配置项</legend>

        <div class="form-group">
            <label>分组</label>
            <input type="text" class="form-control" name="group" value="" required>
        </div>

        <div class="form-group">
            <label>标题</label>
            <input type="text" class="form-control" name="title" value="" required>
        </div>

        <div class="form-group">
            <label>键</label>
            <input type="text" class="form-control" name="name" value="" required>
        </div>

        <div class="form-group">
            <label>类型</label>
            <select class="form-control" name="type" required>
                <option value="text" selected>单行文本</option>
                <option value="textarea">多行文本</option>
                <option value="bool">布尔</option>
            </select>
        </div>

        <div class="form-group">
            <label>备注</label>
            <input type="text" class="form-control" name="tips" value="">
        </div>

        <div class="form-group">
            <label>排序</label>
            <input type="number" class="form-control" name="weight" value="50">
        </div>

        <button type="submit" class="btn btn-primary">提交</button>
    </fieldset>
</form>
{include /common/footer}